package com.stylefeng.guns.admin.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.stylefeng.guns.mapper.NoticeMapper;
import com.stylefeng.guns.pojo.Notice;
import com.stylefeng.guns.admin.service.INoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Service
@Transactional
public class NoticeServiceImpl extends ServiceImpl<NoticeMapper, Notice> implements INoticeService {

    @Autowired
    NoticeMapper noticeMapper;

    @Override
    public List<Map<String, Object>> list(String condition) {
        return noticeMapper.list(condition);
    }
}
